import request from '@/utils/request'

// 查询组织者类型列表
export function listOrganizerType(query) {
  return request({
    url: '/system/organizerType/list',
    method: 'get',
    params: query
  })
}

// 查询组织者类型详细
export function getOrganizerType(id) {
  return request({
    url: '/system/organizerType/' + id,
    method: 'get'
  })
}

// 新增组织者类型
export function addOrganizerType(data) {
  return request({
    url: '/system/organizerType',
    method: 'post',
    data: data
  })
}

// 修改组织者类型
export function updateOrganizerType(data) {
  return request({
    url: '/system/organizerType',
    method: 'put',
    data: data
  })
}

// 删除组织者类型
export function delOrganizerType(id) {
  return request({
    url: '/system/organizerType/' + id,
    method: 'delete'
  })
}
